package com.hrs.core.mapper;

import com.hrs.enity.db.Position;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hrs.enity.vo.PositionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
* @author 纱雾休比酱
* @description 针对表【t_position(岗位表)】的数据库操作Mapper
* @createDate 2023-01-12 22:17:10
* @Entity com.hrs.enity.db.Position
*/
@Mapper
public interface PositionMapper extends BaseMapper<Position> {

    List<PositionVo> listAll();

    PositionVo selectByPid(@Param("pid") Integer pid);

    Integer countSubPosition(@Param("pId") Integer pId);

    Set<Integer> selectPositionIds(@Param("pType") Integer pType,@Param("pName") Integer pName);
}




